<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button></button>
    <button></button>
    <script>
        let btn = document.querySelectorAll('button')
        btn[0].onclick = function () {
            axios.request({
                //请求类型
                method: 'GET',
                url: 'https://autumnfish.cn/hot/topic?limit=30&offset=30'

            }).then(response => {
                console.log(response);
            })
        }
        btn[1].onclick = function () {
            axios.post(
                'https://autumnfish.cn/hot/topic?limit=30&offset=30', {
                    body: "xida",
                    postId: 2
                }

            ).then(response => {
                console.log(response);
            })
        }
    </script>
</body>

</html>